/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import java.util.Date;

/**
 *
 * @author SOGOBA
 */
public class Vaccin {
String nom;
String date;
String commentaires;

    public Vaccin() {
    }

    public Vaccin(String nom) {
        this.nom = nom;
    }
/**
 * 
 * @param nom
 * @param date
 * @param commentaires
 */
    public Vaccin(String nom, String date, String commentaires) {
        this.nom = nom;
        this.date = date;
        this.commentaires = commentaires;
    }

    public String getCommentaires() {
        return commentaires;
    }

    public String getDate() {
        return date;
    }

    public String getNom() {
        return nom;
    }

    public void setCommentaires(String commentaires) {
        this.commentaires = commentaires;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Vaccin other = (Vaccin) obj;
        if ((this.nom == null) ? (other.nom != null) : !this.nom.equals(other.nom)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + (this.nom != null ? this.nom.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "Vaccin{" + "nom=" + nom + "date=" + date + "commentaires=" + commentaires + '}';
    }

}
